<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<form>
			<label for="az">
				<input type="checkbox" id="az"/>全选
			</label>
			<input type="checkbox" class="az"/>1
			<input type="checkbox" class="az"/>2
		</form>
	</body>
	<script type="text/javascript" src="js/jquery-1.11.0.js"></script>
	<script type="text/javascript">
		var num=0
		$('#az').click(function(){
		   if(this.checked){
		   	$('.az').attr('checked',true)
		   }else{
		   	$('.az').attr('checked',false)
		   }
		})
	</script>
</html>
